package com.itheima.heima.info.manager.system.controller;

import com.itheima.heima.info.manager.system.domain.Student;
import com.itheima.heima.info.manager.system.domain.Teacher;
import com.itheima.heima.info.manager.system.service.TeacherService;

import java.util.Scanner;

/*
老师交互类
与老师 键盘录入  输出的代码
应该在这个类中
 */
public class TeacherController extends BaseTeacherController{
    //成员变量
    private TeacherService teacherService = new TeacherService();
    private Scanner sc = new Scanner(System.in);


    @Override
    public Teacher getTeacher(String sid) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        Teacher teacher = new Teacher();
        teacher.setSid(sid);
        teacher.setName(name);
        teacher.setAge(age);
        teacher.setBirthday(birthday);
        return teacher;
    }
}
